import {defineUserConfig} from "vuepress";
// 自定义主题
import theme from "./theme.js";
import {getDirname, path} from "@vuepress/utils";
// 搜索框
import {searchProPlugin} from "vuepress-plugin-search-pro";
import {copyright} from "vuepress-theme-hope";
import {copyrightPlugin} from "vuepress-plugin-copyright2";


// @ts-ignore
const __dirname = getDirname(import.meta.url);


// @ts-ignore
export default defineUserConfig({
    base: "/",

    lang: "zh-CN",
    title: "汽车金融在线文档",
    description: "vuepress-theme-hope 的文档演示",

    theme,

    alias: {
        "@theme-hope/components/HeroInfo": path.resolve(__dirname, "./components/HeroInfo.vue"),
        "@theme-hope/modules/outlook/components/AppearanceSwitch": path.resolve(__dirname, "./components/AppearanceSwitch.vue"),
        "@theme-hope/modules/info/components/PrintButton": path.resolve(__dirname, "./components/PrintButton.vue"),
        "@theme-hope/layouts/NotFound": path.resolve(__dirname, "./components/NotFound.vue"),

    },
    plugins: [
        searchProPlugin({
            // 索引全部内容时，设置为true
            indexContent: true,
        }),
    ],

    // Enable it with pwa
    // shouldPrefetch: false,
});
